<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
	<%@ taglib prefix="sf" uri="http://www.sf-express.com/tags" %>
	<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
$('#select_org, #orgList').click(function(){
	showDialog('user_org/organization', {
		width : '600px',
		title : '个人配置操作机构',
		lock : true,
		param : {
			orgListId : $("#operOrgIds").val(),
			orgList : $("#orgList").val()	
			}
	});
});
function showDialog(url, options) {
	myDialog = art.dialog(options);// 初始化一个带有loading图标的空对话框
	$.post(url, options.param, function(data) {
		myDialog.content(data);
	});
}

$(document).ready(function() { 
	 $("#form").validator({},{
			callback:function(results){
				$("#form").ajaxSubmit(function(data) {
					  art.dialog.list['modify'].close();
					  myDialog =  art.dialog({icon: data.success,content: data.message,lock:true});
		        	 $("#gridTable").trigger("reloadGrid", [{page:1}]);  
		         }); 
			}
		});
	 
}); 
</script>
			<form  method="post" id="form" action="user_org/modify">
			<sf:token id="modify_user_org"/>
				<input name="id" id="id" type="hidden" value="${userOperOrg.id}"/>
				<%-- <input name="operOrgIds" id="orgListId" value="${userOperOrg.operOrgIds}"/> --%>
				<input name="operOrgIds" id="operOrgIds" type="hidden" value="${orgListId}"/>
				<ul class="all_list">
					<li>
						<span class="all_title">姓名：</span> 
						<span><input type="text" id="empName" name="empName" class="ui_input" value="${userOperOrg.empName }" readonly="readonly"  validator='{"label":"姓名","maxLength":60}' /></span>
					</li>
					<li>
						<span class="all_title">工号：</span> 
						<span><input type="text" id="empNo" name="empNo" class="ui_input" value="${userOperOrg.empNo }" readonly="readonly"  validator='{"label":"工号","maxLength":60}' /></span>
					</li>
					<li>
						<span class="all_title">所属机构：</span> 
						<span><input type="text" id="orgName" name="orgName" class="ui_input" value="${userOperOrg.orgName }" readonly="readonly"  validator='{"label":"所属机构","maxLength":60}' /></span>
					</li>
					<li>
						<span class="all_title">操作机构：</span>
						<span>
						<textarea rows="10" cols="50" class="ui_input" id="orgList" validator='{"label":"操作机构","isOnBlurEnable":false}'  name="orgList"  style="width:100px;height:100px"  readonly="readonly" >${orgList}</textarea>
<%-- 						<input class="ui_input" id="orgList" validator='{"label":"操作机构","isOnBlurEnable":false}'  name="orgList"  style="width:100px;height:100px" readonly="readonly" value="${orgList}">
 --%>						<span class="all_title"><input type="button" value="选择" id="select_org" class="btn_blue m-r15"></span>
						</span>
						<%-- <input name="orgListId" id="orgListId" type="text" value="${orgListId}"/>
				        <input name="orgList" id="orgList" type="text" value="${orgList}"/> --%>
					</li>
					<li>
							<span class="all_title"></span>
							<span><input type="button" id="addButton" class="submit_btn submitBtn"  name="addButton"  value="提 交"></span>
					</li>
				</ul>
			</form>
